package com.ea.admin.pojo.vo.user;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.ea.admin.service.UserService;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@HeadRowHeight(60)
public class UserImportErrorVo {
    /**
     * 姓名
     */
    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "姓名"
            }, index = 0)
    private String name;

    /**
     * 单位名称
     */
    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "单位名称"
            }, index = 1)
    private String companyName;

    /**
     * 部门名称
     */
    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "部门名称"
            }, index = 2)
    private String deptName;

    /**
     * 职位名称
     */
    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "职位名称"
            }, index = 3)
    private String positionName;

    /**
     * 性别
     */
    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "性别"
            }, index = 4)
    private String sex;

    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "出生日期"
            }, index = 5)
    @DateTimeFormat("yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String birthday;

    @ExcelProperty(value =
            {
                    UserService.CELL_HEAD,
                    "照片文件名"
            }, index = 6)
    private String photoFileName;

    @ExcelProperty(value =
            {
                    "错误信息"
            }, index = 7)
    private String errorMsg;
}
